#include <string.h>

#include "auth.h"
#include "datainit.h"

int
auth_valid(char *ip)
{
	Host *host = g_rt->conf->host;

	while (host) {
		if (strcmp(host->ip, ip) == 0) {
			return 1;
		}
		host = host->next;
	}
	return 0;
}
